import request from "./index.js";

// 旅程计划列表
export function getTravePlanList(data) {
    return request("plan/proposalItinerary/scenic/history/lineList", data, "GET");
}

//根据旅程i计划d查询详情
export function getTravePlanDetail(data) {
    return request("plan/proposalItinerary/scenic/history/newMapLine", data, "GET");
}

//开始旅行
export function startTraveling(data) {
    return request("plan/proposalItinerary/start", data, "GET");
}

//进入下一个景点
export function goNextPlace(data) {
    return request("plan/proposalItinerary/scenic/history/next", data, "GET");
}

//获取已有旅客列表（添加人员）
export function getMemberList(data) {
    return request("plan/proposalItinerary/findParty", data, "GET");
}

//新增旅客
export function addMember(data) {
    return request("plan/proposalItinerary/addParty", data, "POST");
}

//删除旅客
export function delectMember(data) {
    return request("plan/proposalItinerary/deleteParty", data, "POST");
}

//导出人员列表
export function exportExcel(data) {
    return request("plan/proposalItinerary/outPortExcel", data, "GET");
}

//获取消息列表--负责人
export function queryAssembleList(data) {
    return request(`wxUser/messageAssemble/queryAssembleList`, data, "GET");
}

//获取消息列表--用户
export function queryByUserPhoneMessageList(data) {
    return request(
        `wxUser/messageAssemble/queryByUserPhoneMessageList`,
        data,
        "GET"
    );
}

//集合通知详情 --用户
export function queryAssemblePersonList(data) {
    return request(
        `wxUser/messageAssemble/queryByUserPhoneMessageInfo`,
        data,
        "GET"
    );
}

//通知集合详情--负责人
export function queryAssembleDetail(data) {
    return request(
        `wxUser/messageAssemble/queryMessageInfoByMessageId`,
        data,
        "GET"
    );
}

// 已读和报道 https://travel.daoziji.com/wxUser/wxUser/messageAssemble/readMessage
export function readMessage(data) {
    return request(`wxUser/messageAssemble/readMessage`, data, "PUT");
}


//景点介绍详情
export function getScenicIntrodce(data) {
    return request(`plan/scenic/introduce`, data, "GET");
}

//发布消息通知
export function newlyMessageAssemble(data) {
    return request(`wxUser/messageAssemble/newlyMessageAssemble`, data, "POST");
}

//负责人查看集合签到情况
export function selectSignInfo(data) {
    return request(`wxUser/messageAssemble/queryAssemblePersonList`, data, "GET");
}

//获取后勤人员信息
export function getLogistics(data) {
    return request("plan/proposal/findWorker", data, "GET");
}


//获取就餐点
export function getDiningPlace(data) {
    return request("plan/pathCharge/queryDiningPlace", data, "GET");
}

//获取旅程留影--景点
export function getPlacePhotoList(data) {
    return request("plan/highlightMoment/momentList", data, "GET");
}

//新增旅程留影 --景点
export function addPlacePhoto(data) {
    return request("plan/highlightMoment/newlyHighlightMoment", data, "POST");
}

//是否共享旅程留影--景点
export function isSharePhoto(data) {
    return request("plan/highlightMoment/modifyHighlightStatus", data, "GET");
}

//删除旅程留影 -- 景点
export function delPlacePhoto(id, data) {
    return request(`plan/highlightMoment/removeHighlightMoment/${id}`, data, "POST");
}

//用户在景点签到
export function userPlaceSign(data) {
    return request("plan/proposalItinerary/scenic/history/sign", data, "POST");
}

//获取旅程小组信息
export function getGroupInfo(data) {
    return request("plan/proposalItinerary/groupList", data, "GET");
}

//获取小组景点顺序
export function getSequence(data) {
    return request("plan/proposalItinerary/scenicList", data, "GET");
}

//小组景点上移下移
export function adjustSequence(data) {
    return request("plan/proposalItinerary/setScenicSort", data, "POST");
}

//获取景点任务管理信息
export function getSenicTask(data) {
    return request("plan/proposalItinerary/itineraryTask", data, "GET");
}

//解锁/下发任务
export function taskUnlock(data) {
    return request("plan/proposalItinerary/itineraryTaskUnlock", data, "POST");
}

//查看任务详情
export function taskDetail(data) {
    return request("plan/proposalItinerary/itineraryTaskDetail", data, "GET");
}

//获取团队列表
export function getGroupList(data) {
    return request("plan/proposalItinerary/groupList", data, "GET");
}

//修改组名
export function editGroupName(data) {
    return request("plan/proposalItinerary/editGroupName", data, "GET");
}

//分组调整
export function updateGroup(data) {
    return request("plan/proposalItinerary/updatePartyGroup", data, "POST");
}

//队长调整
export function isGruopLeader(data) {
    return request("plan/proposalItinerary/updateParty", data, "POST");
}

//随机分组
export function randomGroup(data) {
    return request("plan/proposalItinerary/randomPartyGroup", data, "GET");
}

//excel导入人员和分组
export function excelImportOut(data) {
    return request("plan/proposalItinerary/outPortExcel", data, "GET");
}

/***
 个人行程报告模块
 ***/

//个人行程报告--获取旅程相册
export function getAlbumReportMy(data) {
    return request("plan/apperception/queryItineraryReportHighlightMoment", data, "GET");
}

//个人行程报告--查询行程感悟
export function getReflectMy(data) {
    return request("plan/apperception/queryItineraryReportApperception", data, "GET");
}

//个人行程报告--查询用户信息
export function getUserInfoMy(data) {
    return request("plan/apperception/queryItineraryReportUserInfo", data, "GET");
}

//个人行程报告--查询任务列表
export function getTaskListMy(data) {
    return request("plan/apperception/queryItineraryReportTaskSituation", data, "GET");
}

//个人行程报告--个人信息列表
export function getReportListMy(data) {
    return request("plan/apperception/queryPersonageReportList", data, "GET");
}

//个人行程报告--方案信息
export function getItineraryReportMy(data) {
    return request("plan/apperception/queryItineraryReportProposalInfo", data, "GET");
}

//查询上个景点是否上传照片
export function selectPrevPlace(data) {
    return request("plan/highlightMoment/isUploadGroupPhoto", data, "GET");
}

//上传团队照片
export function upLoadGroupPhoto(data) {
    return request("plan/highlightMoment/uploadGroupPhoto", data, "GET");
}

//工作台--路线管理
export function getRouteListWorker(data) {
    return request("plan/proposal/workLinePage", data, "GET");
}
